package com.hx.zhg.web.factory;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public class ThreadLocalFactory {

    private static final ThreadLocal<HttpServletRequest> requestThreadLocal = new ThreadLocal<HttpServletRequest>();
    private static final ThreadLocal<HttpServletResponse> responseThreadLocal = new ThreadLocal<HttpServletResponse>();

    public static ThreadLocal<HttpServletRequest> getRequestThreadlocal() {
        return requestThreadLocal;
    }

    public static ThreadLocal<HttpServletResponse> getResponseThreadlocal() {
        return responseThreadLocal;
    }

}
